package test

import (
	"fmt"
	"log"

	_ "gitee.com/LangHuaHuachihua/blog-go/apps"
	"gitee.com/LangHuaHuachihua/blog-go/conf"
	"gitee.com/LangHuaHuachihua/blog-go/ioc"
)

// 单元测试环境变量加载
func DevelopmentSetUp() {
	fmt.Println("加载配置")
	_, err := conf.LoadYamlConfig()

	if err != nil {
		log.Println(err)
	}
	err = ioc.InitController()
	if err != nil {
		log.Fatal(err.Error())
	}

}
